package cn.wolfcode.car.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
public class Employee {

    public static Integer NoAdmin = 0;
    public static Integer NoStatus = 0;

    /** */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** */
    private String name;

    /** */
    private String email;

    /** */
    private Integer age;

    /** */
    private Integer admin;

    /** */

    private Integer status;

    /** */
    private Long deptId;

    /** */
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss")
    private Date hiredate;

}